package com.changgou.order.mq.listener;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * 过期延时监听
 */
@Component
@RabbitListener(queues = "orderListenerQueue")
public class DelayMessageListener {
    @RabbitHandler
    public void getDelayMessage(String message){
        //订单回滚
    }
}
